<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>待办清单小站</title>
    <link rel="stylesheet" href="style.css">
    <link href="https://cdn.bootcdn.net/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
</head>
<body>
    <div class="container">
        <header>
            <h1>我的待办清单</h1>
            <p class="subtitle">简单高效的任务管理工具</p>
        </header>

        <div class="input-section">
            <input type="text" id="taskInput" placeholder="添加新的待办事项..." maxlength="100">
            <button id="addBtn" type="button">
                <i class="fas fa-plus"></i> 添加
            </button>
        </div>

        <div class="stats">
            <span>总计: <strong id="totalCount">0</strong></span>
            <span>已完成: <strong id="completedCount">0</strong></span>
            <span>待完成: <strong id="pendingCount">0</strong></span>
        </div>

        <div class="filter-section">
            <button class="filter-btn active" data-filter="all">全部</button>
            <button class="filter-btn" data-filter="pending">待完成</button>
            <button class="filter-btn" data-filter="completed">已完成</button>
        </div>

        <ul id="taskList" class="task-list">
            <!-- 待办事项将在这里动态生成 -->
        </ul>

        <div id="emptyState" class="empty-state">
            <i class="fas fa-clipboard-list"></i>
            <p>暂无待办事项，开始添加你的第一个任务吧！</p>
        </div>
    </div>

    <script src="script.js"></script>
</body>
</html>
